package deng.log4j.examples;

import java.io.File;

import org.apache.log4j.Logger;

/**
 * <p>Created on May 10, 2010</p>
 *
 * @author Zemian Deng <saltnlight5@gmail.com>
 */
public class HelloMain {
	
	private static Logger logger = Logger.getLogger(HelloMain.class);
	
	public static void main(String[] args) {
		HelloMain main = new HelloMain();
		main.run();
	}

	private void run() {
		String dirname = System.getProperty("jboss.server.log.dir");
		File dir = new File(dirname);
		System.out.println(dir);
		System.out.println(dir.exists());
		
		File log = new File(dir, "log4j-examples.log");
		System.out.println(log);
		System.out.println(log.exists());
		logger.debug("Start running.");
		logger.info("instance: " + this);
	}

	// ========== Fields

	// ========== Constructors

	// ========== External Methods

	// ========== Internal Methods

	// ========== Getters and Setters

}
